﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Collections.Generic;
using System.Runtime.Serialization;

namespace FinApp.Model {
    [DataContract]
    public class CommerceDataModel {

        #region Members
        private string publicName;
        private AddresModel addresModel;
        private List<double> location; /// [Latitude, Longitude]
        #endregion

        #region Constructors
        public CommerceDataModel() {
            this.location = new List<double>();
        }
        #endregion

        #region Properties
        [DataMember(Name = "publicName")]
        public string PublicName {
            get { return publicName; }
            set { publicName = value; }
        }
        [DataMember(Name = "address")]
        public AddresModel AddresModel {
            get { return addresModel; }
            set { addresModel = value; }
        }
        [DataMember(Name = "location")]
        public List<double> Location {
            get { return location; }
            set { location = value; }
        }

        #endregion
    }
}
